package cn.gene.timeyan.pojo.store.order.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
public class ExchangeOrderDTO {
    private static final String VALIDATE_MESSAGE = "兑换订单失败，";
    private static final long serialVersionUID = 1L;
    /*属性*/
    @NotNull(message = "参数不能为空")
    @ApiModelProperty(value = "用户id",name = "userId",example = "2",required = true)
    private Long userId;
    @NotNull(message = "参数不能为空")
    @ApiModelProperty(value = "商品id",name = "goodsId",example = "1",required = true)
    private Long goodsId;
    @NotNull(message = "参数不能为空")
    @ApiModelProperty(value = "兑换积分",name = "actualScore",example = "33",required = true)
    private Integer actualScore;
    @NotNull(message = "参数不能为空")
    @ApiModelProperty(value = "数量",name = "purchaseVolume",example = "1",required = true)
    private Integer purchaseVolume;


}
